home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13911 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: ns.mad.servicom.es!news
  2. From: ores@mad.servicom.es (Orestes Sanchez)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help: Containers for templated classes
  5. Date: Wed, 27 Mar 1996 23:03:52 GMT
  6. Organization: SERVICOM
  7. Message-ID: <4jci30$3bu@ns.mad.servicom.es>
  8. References: <314740D4.23B1@mit.edu> <1996Mar22.020605.6@network-1.com>
  9. NNTP-Posting-Host: ppp_mad_11.inf.servicom.es
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. garrett@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN (Don Garrett)
  13. wrote:
  14.  
  15. >Imran Haq (        ) wrote:
  16. >: I'm kind of new to advanced usage of templates. Does anyone know how 
  17. >: to put different template classes in a single container. Is this possible?
  18. >: For example, I have instations
  19.  
  20. >:   myClass<int>   *type1;
  21. >:   myClass<double>   *type;
  22.  
  23. >:  ....
  24.  
  25. >: I'm using STL to provide container classes:
  26.  
  27. >:   vector<myClass<????> >  container;
  28.  
  29. >: But this obviously does not work. Does anyone know about any
  30. >: workarounds?? HELP!!!
  31.  
  32. Try the STL Newbie page at
  33.  
  34. http://www.xraylith.wisc.edu/~khan/software/stl/STL.newbie.html
  35.  
  36. Orestes
  37.  
  38.